import { ITableColProp, ITableConfig } from '@/base-ui/table/src/types'

export const propList: ITableColProp[] = [
  {
    prop: 'name',
    label: '角色名',
    minWidth: '60'
  },
  {
    prop: 'intro',
    label: '权限',
    minWidth: '60'
  },
  {
    prop: 'createAt',
    label: '创建时间',
    minWidth: '120',
    slotName: 'createAt'
  },
  {
    prop: 'updateAt',
    label: '更新时间',
    minWidth: '120',
    slotName: 'updateAt'
  },
  {
    label: '操作',
    minWidth: '100',
    slotName: 'handle'
  }
]

export const contentConfig: ITableConfig = {
  title: '角色列表',
  isShowIndex: true,
  isShowSelection: true,
  propList: propList
}
